<template>
	<view>
		<scroll-view scroll-y class='chats clearfix' style=''>
			<view class='time'>18:06</view>
			<!-- 左侧 -->
			<view class='chatLeft'>
				<image src='../../static/service2x.png'></image>
				<view class='left'>我就是你的专属客服哦！</view>
			</view>
			
			<!-- 右侧 -->
			<!-- <view class='chatRight'>
				<view class='right'>好的哦</view>
				<image src='../../static/service2x.png'></image>
			</view> -->

		</scroll-view>
		<!-- 底部菜单 -->
		<view class='inputBox'>
			<image src='../../static/chat03.png'></image>
			<input type='text' confirm-type="send"></input>
			<image src='../../static/chat02.png'></image>
			<image src='../../static/chat01.png'></image>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {

		}
	}
</script>

<style>
	.chats {
		padding: 20rpx;
		box-sizing: border-box;
		margin-bottom: 110rpx;
	}

	.time {
		text-align: center;
		font-size: 24rpx;
		margin-bottom: 20rpx;
	}

	.chatLeft {
		float: left;
		display: flex;
		align-items: flex-start;
		margin-bottom: 20rpx;
		clear: both;
	}

	.chatLeft image {
		width: 82rpx;
		height: 82rpx;
	}

	.left {
		background: #fff;
		color: #333;
		font-size: 28rpx;
		padding: 15rpx;
		border-radius: 10rpx;
		max-width: 70%;
		margin-left: 30rpx;
		position: relative;
	}

	.left::before {
		content: "";
		width: 0;
		height: 0;
		border-top: 10rpx solid transparent;
		border-bottom: 10rpx solid transparent;
		border-right: 10rpx solid #fff;
		position: absolute;
		top: 10rpx;
		left: -10rpx;
	}

	.chatRight {
		float: right;
		display: flex;
		align-items: flex-start;
		margin-bottom: 20rpx;
		clear: both;
	}

	.chatRight image {
		width: 82rpx;
		height: 82rpx;
	}

	.right {
		background: #fff;
		color: #333;
		font-size: 28rpx;
		padding: 10rpx;
		border-radius: 10rpx;
		max-width: 80%;
		margin-right: 30rpx;
		margin-bottom: 20rpx;
		position: relative;
	}

	.right::before {
		content: "";
		width: 0;
		height: 0;
		border-top: 10rpx solid transparent;
		border-bottom: 10rpx solid transparent;
		border-left: 10rpx solid #fff;
		position: absolute;
		top: 10rpx;
		right: -10rpx;
	}

	/*  */
	.inputBox {
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		background: #F0F2F4;
		padding: 0 20rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;
		height: 110rpx;
	}

	.inputBox input {
		background: #fff;
		padding: 15rpx;
		border-radius: 10rpx;
		width: 65%;
	}

	.inputBox image {
		width: 54rpx;
		height: 54rpx;
	}

	.inputBox image {
		margin-left: 20rpx;
	}

	.inputBox image:first-child {
		margin-left: 0;
		margin-right: 20rpx;
	}
</style>
